Moved some dependencies to test scope.