update tests to reflect

* erlang is now more strict when it comes to cookbook constraint validations.
  environment cookbook constraint tests updated to reflect that
  array),
* some minor refactoring for readability and to reduce number of pended
  tests.