Fix test after adding script ended notice