Jasmine testing framework
compareVersions function
tests for compareVersions function