TRUNK-3654: Changed 999 to maximum Integer and added few test cases

https://issues.openmrs.org/browse/TRUNK-3654

Changed 999 to maximum Integer so ModuleUtil should not treat SNAPSHOT as 999 and added few test cases