Fixed #1 (failing unit tests due to a logic issue in TripleIndex.match)