bugfixes and test coverage for a couple of the modules in pyfarm.agent.entrypoints