Fixing dependency copy for build and test

Now hadoop deps are copied and resolved for both
test and build tasks.