Added support for parameters with such

The extra make_test_func is to ensure "case" is properly stored as a closure.
This fixes #139.