fixed test
- fixed tests
- added environment sanity checks to test correct test setup