Fix `test\Unit` to be 5.4.12 compatible.
Merge pull request #847 from jails/bug/unit-test

Fix `test\Unit` to be 5.4.12 compatible.