Electrical testing for serial port and nearby DMA loopback