integration test bug fixed