Created Photo factory and test.