Fix test case to pass in CI