Fix unit tests to use an open file as argument to ShMem.init