updated auto generate ref number for members, updated fields, updated tests