tests for MegaIndex