Add unit tests for new unshareFromSelf() functionality.