Converted tests to c++.