Adding ScriptPackResolver implementation and tests