forked from: HeapTest

fix insert and pop bug ;)