Decrease number of random test in testDynamics.cpp to pass travis-CI