Fixed test_runsql() function. Working on test_download() function.