Change scope of logmanager dependency to test only.

Stops the logmanager from be transitively included.