fix test for platforms supporting both sequences and identity columns
Merge pull request #402 from deeky666/fix-write-test-last-insert-id

Fix WriteTest for platforms supporting both sequences and identity columns