spy returned the wrap function
calledBefore/calledAfter