Added unit test for users password encryption.