Added test for duplicate name