tests/identifiers: fix 'target', 'directory' and 'parents' object types
These are expected to be bytes, not str.