Fix for CrowdMigrationDAO test

... and a fix for one of the team tests.