[update] fix warning and error in test