failing testcase for returning generics