Rather than a black with green and a black with yellow I have a yellow, a green and a black.
With engine on I get voltage from the green on low beam and voltage from the yellow when I switch to high beam.
Sounds like you are right with the possible grounding issue. Forgive my naivity with things...