Reorganize tests.
Add support for empty directory artifact rule.
Add parallel downloas to ResolveDependencyCommand.