Fix bug in Canopy Overlap test and add simple test for InvertIndex