fixed tests for dictionary and heaps