Unit test for decoding behavior change in #11

I suggest to revert #10 (4acbe0e514520d29faee330dede8c45246a166d9) as well.