tests: new test to verify pkg files removal with files that only have read bit set.

This currently fails but will be fixed in an upcoming change.
Fix package files removal with only read bit set.

The previous code was checking incorrectly if the file had the write
bit set, and this is wrong because a package could have files with
only the read bit set (0444).