Minor additions to error checking and formatting of test table