functionality for headless tests. and reporting