Update tests that set permissions to also include 'DOWNLOAD' permission and tests that test functions using queries
Changes in stack-181 introduced a new permission type: DOWNLOAD, which determines whether a file is able to be downloaded. Change tests that specify permission to also include DOWNLOAD permissions.
Tests involving functions that use queries need to sleep for a few seconds before using that function because queries are now eventually consistent instead of immediately consistent.
Verified fixed py-1.7 vs stack-185.
All tests should be passing again
Queries are failing again because timeout was not long enough