Test that PackageResource.filename can be invoked multiple times

This is a test case that was not yet covered. It is not obvious that
this works as it should (I actually expected that it wouldn't).