Resolve issues and add tests for the select element with multiple attribute