modified test cases to use byte array for photos, added comments