Just make it always think it's being tested, and problem solved.