add test for bom in decoder