Uart setup test code