Added work-around in tests for the lack of serial ports in Travis CI

To avoid skipping tests