native unit test for filter