and java level tests of filter api