Fix compound index tests