animation refactoring phase 3: included new state calculation into test but not into pyb main. The nondeterminismim is still not (always) correct implemented.
all test work with the new merged version.