fix sharing unit tests

This tests passed successfully only by coincident in the past. Now they should be correct.