Add Rspec tests for controller