Added a test to cover lastAutoId()