Test code with uart