There is a unit test for it (test_task_arg_gen in calculators/hazard/event_based/core_test.py) but it is true that it does not cover all the cases and probably could be improved.