Code refactor and injection of of the repositories for testing purposes....

... Set test configuration with sbt