Fiexed unit test "Check that non-existent environment are handled with an error". Reformated code.