add rspec and user unit test