adding test case for all-args constructor with generics