Replaced tests for negative and zero values from deposit and withdraw to
a unique test with both cases. Refactored code in deposit and withdraw
to check both cases in one condition.