tested the first case of updateTable method.