removed test dependency on attrgetter