add test for update member function