Condition online check to happen when the code isn't in UnitTest mode.