Add tests for checking password encryption