Improve test for valid password