cleanup tests and prevent them from printing expected error messages