Tests for auto ids, includes failing test for integer

This failing test describes the bug we're getting.
fix for auto id bug - verifying test is now passing
Merge pull request #362 from alphagov/fix-integer-auto-id-error

Fix integer auto id error