Update send & receive unit tests to cast from\to xml