Added tests to user_spec