Revert "Use shared mem for tests"

This reverts commit b95bcf249d11aeaf7285e48a3c5a852eb53d3e71.