adding phantom and headless testing