write good test code for user_spec