Test heap alloc in range