tests: fixed test cases that could fail incorrectly in the "HUP reload" testing mode.