Add tests for the dms_metadata model