Check the name exist for all scopes while injecting

Resolve #7