add a test settings config for the Elasticsearch hosts
start unit testing: test building the Query
factor out building the tags query string
start refactoring tests
refactor tests to test function with less scope
test some more edge cases
remove line at end of file
refactor filter expressions for readability