cleanup of array, hashmap and test hashmap class