more unit tests for proxy and a few bugs fixed

the new unit tests uncovered a few small bugs in the proxy, vlan slicer
and rate tracker.  These are fixed and the unit tests can detect them