Add unittest for targets.util.resolve