add test for auto id