add ability to clear spies set on static functions