Fixed bug in negative filer, added positive json filtering, plus more unit tests.