FIX: fix shell unittest for MacOS hopefully