Fix mocking and assertion in agg_with_query_key test
Fix mocking and assertion in agg_with_query_key test

jetyang2005/elastalert,Yelp/elastalert,dvopsway/elastalert,rprabhat/elastalert,jetyang2005/elastalert,jetyang2005/elastalert