ContainerBuilder: added test for interface as a service factory