Added integration test post [correctly handle exceptions in context managers]