Flush output table in test
Fix bug in test, was scanning the source table rather than the destination
Add a test which validates the columns query argument