test with unittest
open/close serialport in setUp/tearDown