Added samples for when there are multiple dependencies being registered via serviceoverride. Small refactorings.