Figure out what tests it's running and then figure out how to lie to it.
Well, yes, of course. ;-)
The problem is that if it's smart, it won't let you intercept the fact that it's running a test. That's somewhat more challenging in these days of multiple cores and threads, but it can usually be done.
A very interesting problem in either direction.