Added serial test code