unit-test traffic flow calculation