reduce unit test durations
relax hzerror limit for diagnostics test with no device
(cherry picked from commit ace4bcadec66eab6eb37fe0a96491a5090341748)