Added tests for row deduplication