adding test for decoder