Tests for context class