add test for bytewise decoding