More DAO tests.

This PR adds some more DAO tests. The DAO still isn't fully tested, but this a start.