modified rspec for photocontroller