Nwfilter implementation and integration tests