Fix coverage reporting in tox.
Add filtering to queries.