Added samples and tests for context.