add TestBurnEntryByRandom and fix Trim()