Fix the remaining tests so that the database backed resource manager's tests all pass.