added test to check if folder exists