add some extra tests based on bug nico spotted

has initial mode we are working in, add new, edit text or edit text and
time. Tests for those states
Merge pull request #38 from tidepool-org/jhbate/edit-fixes

add some extra tests based on bug nico spotted in master