created new entity test suite
fixed bug in entity where compareTo does not return -1, 0, or 1.
and the test to do it with.