added tests to hash and heap