rather than suppress warnings in the 2 tests below, why not call close() on the context at the end of each test method?