diff --git a/tests/test-item-metadata.php b/tests/test-item-metadata.php
index 8de75cfd9..47db77b1a 100644
--- a/tests/test-item-metadata.php
+++ b/tests/test-item-metadata.php
@@ -706,14 +706,17 @@ class Item_Metadata extends TAINACAN_UnitTestCase {
$item_taxonomy_metadata->set_value($term);
$item_taxonomy_metadata->validate();
$term_id = $term->get_id();
- $this->assertEquals($item_taxonomy_metadata->get_value_as_html(), "first term from my tax");
+ $link = get_term_link( (int) $term_id );
+ $this->assertEquals($item_taxonomy_metadata->get_value_as_html(), "first term from my tax");
$taxonomy_meta->set_multiple('yes');
$item_taxonomy_metadata->set_value([ $term, $term2 ]);
$item_taxonomy_metadata->validate();
$term_id = $term->get_id();
$term_id2 = $term2->get_id();
- $this->assertEquals($item_taxonomy_metadata->get_value_as_html(), "first term from my tax | Second term from my tax");
+ $link = get_term_link( (int) $term_id );
+ $link2 = get_term_link( (int) $term_id2 );
+ $this->assertEquals($item_taxonomy_metadata->get_value_as_html(), "first term from my tax | Second term from my tax");
}
function test_compound_metadata_html() {