add packages mock helper and add additional tests for packages collection