Added basetest with 1024 bytes (0x00). Fixed small logical error in Tx function.