add test aggregate query, spit out JSON