Debug basic enccoding module and testing spec