modified testscript with input of Anders Elo.