Add tests about pre releases

I tried add tests and source code about prerelease following the semver precedence:
` 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 `

But probably this patch needs revision. 

:cloud: