Added isdir() test