[PATCH 2/2] tests: commandtest: Make 'test4' checking daemonization more reliable