Adds filter unit tests
Fixes problem with host filters (remote_hosts and local_hosts)