Break executing a test out into a function.
Move the results array into a new structure tap_results
Make the dump_results_array function saner.