Add tests and fix for prepatch

Adds tests for prepatch, removes duplicate preminor and premajor tests.
Adds fix for prepatch run on a prerelease not bumping to the next patch
version similar to preminor and premajor.

Fixes #86