fix sharing unit tests