Using spies for method tracking instead of wrapping - seems to break in newer versions of nodejs