Unit 2: Added unit tests for remove_shared().