could still be the cap or the sensor, or even the tank!
I had a brand new febi tank and it leaked from around the level sensor (thats what the 2 pin sensor is on top of the tank) I tried both a brand new and 2nd hand vag level sensor, still the same.
So I put an old gen vag one back on, problem solved! However the new cap I bought leaked, so I swapped an old one on, problem solved again! Crappy pattern parts

only way to test the sensor is either get the engine to 3/4, or take it out and sit in a cup of boiling water then test it with a multimeter. 2nd option means you loose all the coolant out the rad, so if you go that far may as well just buy a new one.
The switch wont be causing the coolant to come out of the tank if its doing it before 3/4 though, its a problem elsewhere!