Fixed broken integration test in the api sample