fixes headless client tests