ticket:5 added test for photo upload