fix unit tests

get rid of sys.exit(0) that slipped in with #752