Coccinellery

Here's a small patchset adding a new test to qa coccinelle script and fixing an issue.