refactoring package ioc (test)