Making headless testing work.