Add tests for CPP and Python handler