Fixed support for expectFn argument

Override global `window.runs` to support expectFn argument
Promise resolve/reject value is now passed to the expectFn if that function specifies a parameter.