Don't test calls in object, it doesn't support it
Fix the bug, so it can compile the test case
Add another method of mkDefDef, that uses template