add serial test code