unit tests for querying monitors by attributes