grex: added byte unpacker for unit test