test for camera function