fix tru to delete file test for ubuntu by adding EISDIR to returned error