Polish ComponentScanParserTests and clean up warnings