Packagelock type and provider tests and implementation