Move disallowed sharing tests to own file