test uploading heaps

Fixing issues #93 and #102 by correct upload and delete buffer size check.