added limit on test tries