Add test for classes body taking function as param
When mapping arguments to body parameters, we can't type check, so don't try

Close #4319