JAL-715 allow headless construction for testing