Add tests for exceptions thrown by filters.