updated the tests for duplicate check and name collision