test-perror: rewrite to use init script