Add compare and more test for unique_ptr