tests working!  need to add tests for changing galleries and for rendering photo inactive