Added test case for automatic ports (TryInfQDyn); fixed bug in ThFileWt (was dropping last byte)