Change base methods for actions with packages and add tests for this actions Change-Id: Ib6af8933c18ea9670a388dca53f1c55a92180208