Working unit tests for SpaceIndex functions