[--bugid=54831--] Added WaitForTerminate on instance during simple test