Test repo write method