Created test-class TestBankAccount for superclass BankAccount.

Created test-class for superclass BankAccount and subclasses
SavingsAccount and CreditAccount. Some modifications in the
classes were also necessary.