added rspec tests for application