test and withdraw