Tests and bugfix for parseTraffic()