clean up logging in tests