Add regression test for buffer value type