added test for update, not finished added though