Some more fixes.
Add a test for sharing of tags.