Add custom metadata tests