Better testing of DI functionality.