some context managers for TestCase class