Replace the placeholder version of Scanner.LastError
Add tests to verify Scanner error persistance
Add enough tests for complete Scanner test coverage