some tests in C++