fixed tests for api binding