Two years HAVE passed is correct. The “two” before years indicates a plural noun, which necessitates a plural of the verb “to have”. Conversely, you would say “One year has passed”.
What does it mean to pass the test?
you've passed the test: you have succeeded (in this trial or evaluation)