uncomment constructor test for closure, as this is a supported case
add test case for incorrect return type