added tests for encrypted password matching