Test code for uart