Fixes on serial com and Test protocol program