Withdraw method and tests