updated test case for StackEnvironmentServer