TST: strengthen memory sharing test