invoking expectedFn with apply to prevent wrapping of result
Merge pull request #4 from janeklb/bugfix-expectFnHasWrappedResposne

invoking expectedFn with apply to prevent wrapping of result