add test for pid file