[Fixes #1155] Added functional tests to cover common versioning scenarios.