added getNames unit tests