Add test cases for CPPhoto