Add tests for the seed scanner, and related fixes.