Test filter with up and down stream filtering. Keeps top N queries and prints a report of these queries on session close.