improved alloc errors test