download function of TestDataUtil was rewitten without using package nio