Correcting the simple pendulum equation and adding tests