Add tests for cam
Make the code compile