Added isValidDirectoryPath tests