Adding path scanner tests and fixing subtle but related to null paths.