corrected bug where 1.2.3 > 1.3.2, added tests
Merge pull request #1 from sublimino/master

corrected bug where 1.2.3 > 1.3.2, added tests