Checking for test mode