fix PhotograpgerController and tests