heap: port tests