Migrated to c++ test-cases.