Earthquake simulation and tests