add test for duplicate names