fix tests so that they do not error out when trying to perform clean up