fixed unit tests removing live daemon pid file