Fix c++ test