Add Test target and headless testing