Add brackets to test expression for better scripting; Add pipefail option to set_default()