updated test to have filtered query