Serial protocol - transmitting while receiving or vice versa

You will need to be careful with software serial, the standard softwareserial library is not capable of reliably sending and receiving simultaneously, so a loopback test will not work. I'm not sure if there are alternative libraries that will work. You could try sending on a software serial port while receiving on the hardware serial port.