changed pyserial test to make it simpler