corrected bug where 1.2.3 > 1.3.2, added tests