Don't clobber RX buffer if overflow detected.

Add overflow related unit tests.