Removing double definition of dependency in test