Add some basic tests for the dead reckoning class, and a small fix.