large allocation tests and fixes