Fix typo in bail.t
Add a newline to the missing filename message
Add test_list for testing the list function of the testprog
Fix an uninitialized memory / segfault bug.