fixed bug in slicer test that requires non-empty directory