Added index factory test