Fix some sharing test cases