Transferring member to createNewmember function and test creation