Fix serial driver
Update some tests