more flexible filter test