test constructor injection