Added dir() test