fixes bug 962643 - fixed silly errors in implementation and testing.

ok, we all dropped the ball on that one.  not only were there silly errors in the laglog implementation, but the tests didn't detect them.  This should fix both those issues...