Fixed incorrect wait methods in ShellTest utility.