Unit tests for restrict filter