Fix unit test DesignerTest so that it runs in headless mode, too.