Add metadata checks to DAO test.