Add test to check that different indexes does not get merged