bugfix in usart && added a test case for it