Testcases for the unix init-script

New test infrastructure for testing the unix init script.
This helps to ensure that the script works as expected on various
unix platforms.