changed data-name back name
added test cases