Test for 'name already exists' error