Unit-testing for handle_control_hsfetch()

At this point this function has no unit-tests.

We should try covering code from legacy/trac#20006 (moved) and legacy/trac#25417 (moved) as well.