regression tests for decode