corrected bug where 1.2.3 > 1.3.2, added tests

Less than comparisons were occurring in isolation - added "and previous version number less than or equal" operators.