Add a unit test for buffer_get_context_classes_at_iter