implemented test for decoder but not working yet