properly cleanup Context for most of the unit tests