CSPACE-6273: Added directory exists test.