Simplified isTestMode().