Test if LAST_INSERT_ID actually returns an ID

We can now create our own IDs in before_create hook.