Added a limit of failures in a row
Updated test.jl