added test for getNames