Added test for class and interface upper bound for method type arg