test decoder all the way through