switch to rspec and add a few tests for controller