tests: Fix mirroring tests on big-endian architectures.