use generics in test