Fixed tests. Updated send_transaction to send as message.