dont free prematurely
reduce failing test to just adding a directory