Added unit tests for c++ adapter. Fixed a bug with Pair::operator<.