added test to added tests to users_spec for validation