add a regression test for decoding empty buffer