added tests for shared environments