create deposits and withdrawals and fix tests