Add getName getter
Add test for getName