added code to show standard output when the test of the number of lines fails in assertRecord().