I'd like to see some tests that actually test the filter directly, not via side effects. Create a web resource and a filter with various permutations, then run the resource through the filter, ensure you get the right stuff out the other end.