that yellow wire is the neutral saftey

sounds like that isn't working right.
if you ground it (which is what you did with the test light) then the ignition and relay are working fine.
neutral saftey is the problem.