Added tests for the babysit() function.
Added unit tests for the models in pulp.server.db.model.resources.