add tests for getName()