JavaScripot Spy Class for 3rd party testing frameworks