testing when setting a locked service for di container