The write(byte) function sends one byte. The write(char[], number of bytes) function will send a string. So 2.1 and 2.2 are not using the write function properly. 2.3 should work [except the stray ) in "HelloTestCode!")]. Are you sure that the problem is not how the box interprets the data and sends the data to the server? What do you get if you write to the serial monitor instead of Serial1?