test framework for code_scanner