added tests for password validations