add rspec and tests for user