This gives better information when an error occurs during the execution of a test. Also pre-commit cleanup