Added tests for compare_items