refactor injector singleton test

unified original injector and di compiler singleton test