Added a test for Photo->JSON and JSON->Photo