product-apim test migration, bug fixing, test cases