Working calcIndex and adjacencies tests