getEnvironment unittests (for env.js)

This pull adds unittests for env.getEnvironment()

checked with:
```
$ check sugar-web
```

Note: full check is currently broken