Add test for headless rendering