added test for password validator