Added JUnit tests for checking if the installer schema version is greater or equal to the minimum crop version and refactored code to be able to easily test the logic of the code

GCP-10036

Reviewer: Daniel Villafuerte