refactor traffic control args as a hash, make tests more readable