Port complete unit tests from kodo-cpp