make headless test use its own file