Tested NSURLSession rather than NSURLConnection to retrieve data