added test for filter query