clock as arg; more tests

also taking max_tries and interval as argument