added tests for context