Test marking document sets public. Fixes #439