Added more tests and logic to avoid trying to create namespaces with same names.