code review: use the same code (corresponding test cases - with sharing on and without it);