Robustify & simplify tests.
Ignore pid file.