adding tests for autonumber
code for auto numbering