Bugfix for issue #389 + randomTestCreater

yes this i going to be improved when the simulations start (jut waiting for python to get ready)