Abstracted out the most common DAO tests.