add specs for CodeMatcher