Added tests.

Verify handling of invalid ranged versions.
Verify handling of malformed ranged versions.