Test writing to file from CLI