the problem is:
declarations="`declare -F 2>/dev/null || typeset +f 2>/dev/null`"
Dash does not have declare or typeset builtins.
Dash behaves this way whether invoked using /bin/dash or /bin/sh
It's not clear if Dash has a way to list defined shell functions at all, even as part of another list of user accessible envrionment items. Bad form, Dash-devs.
If you use a shell, which doesn't support declare ot typeset, you must register the test functions manually. Call "shuRegTest <Test Function Name>".