fixed integration tests in BatchApiTest