improve the tearDown method as it was contaminating the global config