Fix failing test cases: testBuildListener