Test script exit codes and return checking
Beginning to add in missing tests