Fixed unit test for MdSimulation.

Also, added initial force calculation in MdSimulation::simulate().