He passes the test when he throws his saber away (which makes the PT Yoda seem even more stupid) and refuses to kill his father even though he has a chance but he had a bit of help from Palpatine there.
If the Emperor hadn't been such a show off and offered him Vader's vacant position maybe Luke would have had a less easy time cooling off.