rspec tests for main app added