Add unit tests for the Pidfile API, and start working on tests for the

Parser API.