Renamed serial_interface to communication. Wrote unittests using mock objects.