Remove Rspec warnings
Rename previous to prev
Improve coverage of photos tests