Adapt init.d script template and test fixture