Added dimensionality tests.

Added tests in batch_filter to ensure that parameter zs is
of the correct size for the filter.