Unit tests for table filtering