Fix ChangeHandler and ChangeHandlerTest.

Test handling of missing revisions, removing debugging code (oops!).

Change-Id: Id7cdded7a71c9255da6bf20d3cf6ef7596110f5c