updated controllers for rspec testing