Add and fix smatch implied tests.