Implemented use name instead of id for sub Sources

Added test for "DuplicateName" too