Added remaining methods to test_context.