added test for heap