fixed broken tests related to server.inject and dependencies.