tests: Add test for previous commit

Add test case for the double-INSERT, instead of INSERT followed by
UPDATE, mentioned in
https://bugzilla.gnome.org/show_bug.cgi?id=734029