Split up tests into more files

Motivation: DAOFactory test file was becoming quite the beast.
Downside: Existing PRs might need to be rebased, but that would probably be needed for most of them anyways.