Move JSON filter unit tests into own file

Separates JSON filter unit tests from test_host_filters.py and refactors
the test methods to remove some cruft.

Change-Id: I31b9b409f4bbc17074067f42ea9da1418d963086
Merge "Move JSON filter unit tests into own file"