RSpec tests added for controller