Test reading with shared vertices