Added tests and fixed bugs for the pulp.server.async.tasks module.