fix errors in related_items box
add tests for related_items