Test case for #342
Reject index for existing repo from unshared node (fixes #342)