using autoincrementing id and wrote tests