Add init_xv_test for testing purposes.
Merge changes between subroutines send and update