Fixed headless testing.