updated test to avoid random failure for commons io