Split out core filter unit tests

Break out the unit tests for core filters from test_host_filters.py
into its own file. In the process, we mock out the database calls for
getting aggregate information instead of creating database records.

Change-Id: I9c602b9832632ad84b4b0941c5254a283d278b69
Merge "Split out core filter unit tests"