Added filter test code