Fix failing test regarding console change to fix sandboxing

Introduced in be3e10cd26bc8ec29c6474d03a08a8e733108e7d.