Add test for decoder stack