fix uploadDir and add test