Test writing to upstream