updates test to use headless application