Fixed dictionary comparison in index test