Spain and Andorra is non-sense, right? San Marino was part of the Duchy of Spoleto, thus part of the HRE. Whether the Vatican was a souvereign state or part of the HRE is under debate. However, due to the tight bound between Pope and HRE, it would be misleading to exclude Vatican City from this list.
Vatican and San Marino was part of HRE.