Modified Environment::isValidEnvironment to use the Strategy Pattern. Updated tests to reflect this change.