use window._rollbarWrappedError in wrapped functions instead, add and fix tests, code review changes @coryvirok