Add unit test for correct _context_checker encoding