add test for getName method.