a test for camera function