GNU C++ testing codes for native library