Improve the overall scanning algorithm
This patch series includes a set of additions to the unit tests that expose a few bugs with the scanning algorithm. It then includes fixes for those bugs.
This patch series includes a set of additions to the unit tests that expose a few bugs with the scanning algorithm. It then includes fixes for those bugs.