[MAINT] Add unit tests for linear filtering.

As the title says.