shell_command_before, expand + test