Add unit tests for Name attribute