Tests for metadata()