added rspec tests for model and requests