Tests for DynamicIndex