Fix include attributes

The test for filter function need to return a boolean.