compare with pure C++ test