make sure test exit with error code if their are errors