update the tests to use Filter instead of Sample