resolved #46 -- add a lot of tests AND find out the TripleComparator had a stupid mistake in it