Tests and bugfixes for multi valued elements