make timeout a fixed # times the max_iter. plus new test to match a timeout case on ec2