add test for apollo/environment and apollo/environments and added function for creating environment for testing purposes in Util.java