added tests for getName