Make ectest use random random numbers. Add a new test