Added error checking and retries to morecomplextest