unit test for machine filter