Optimizes semver conversion
Adds semver tests