improved test base
improved clearAll methods by not copying existing collections
Testcase for close method
remove whitespace