fix typo in register_package_resource

the typo was in the CONTENT_FILE logic branch
add integration test for normative use case