produce a better error message if a service isn't available for
injection
fixed test error
removed obsolete method