Add test using generics.