converted photos controller test to rspec