Add tests for cpp