Add integration specs for headless mode