write user_spec unit tests