testcase for  fixable bad function casts with extra params