Fix to compare the versions with rc tags and unit tests for that.
Merge pull request #265 from pinnamur/update_tests

Fix to compare the versions with rc tags and unit tests for that.