Transforming vector and list to other structures. Tests for this.