removing bool parameter from expect()