some cleaning and unit tests for the flow timeout

added some unit tests for Flow Timeout within the proxy.