Fix test to declare maven repo correctly with Gradle 1.x/2.x
Fix tests - openApi is not supported starting with 2.0-rc-1