Add tests for amendment log, and a bit code reformat

RIAK-1212