more Testing code

example Test now creates log file with the state on each step
compare log searches for two log files for differences
random gen makes new random numbers following spec