Improve test coverage over filters and invalid json