tests pass in cpp