Adding test for class that extends a method with a type parameter, test is failing