added the two tests for constructCommandPacket