Fix warning about using sys.error and not error
domain now also uses injection (as a "client").

Injection in domain is done in tests using guice, as dagger will not work with scala.