Moving tests and adding wallet merge function.