added testing for folders