bad list as default arg reference
be explicit about using the right id for getting sync logs

- fixes some odd race conditions in tests where two sync logs were
  created with the exact same timestamp and the wrong one would get
  referenced
Merge pull request #81 from dimagi/test-fixes

Test fixes