add serial write int test