automated tests and cleanup