add spyOn to predef globals