[PATCH v2 04/23] tests: Lockspace and resource names should be read as bytes