use $expect var declared in assert