Fixing the Capture Scenario break due to last commit and cleaning up the fetchTest functions

Last commit broke the capture scenario for integrity violation panel on the left. Fixed that. Also cleaned up the fetchTest function return values to use the dataFilter jQuery option rather than constructing custom objects.