added tests for password