update test context