I think this should be guarded by a check for whether it's in test mode.