Test some pendulum code