Improved the unit tester to allow the testing of the result to use an arbitrary equality function.