first working filter test (passes valgrind)