add test code on serial communication