added test infrastructure, including some tests for environments