Added user_spec.rb and fix the bug of expecting count to be 1 when creating a user in the test