Add tests for variadic foreign functions.