Update tests and add test cases for download_resources method #7