Added tests for all filters and fixed some inconsistencies while at it.