migrating and fixing compilation errors of tests-governance-api