Improved termination while downloading
Fixed function name containing 'test'