minor cleanup in test/headless.lang