Unit test for context