added unit test for Serial