create testfunction for uart