malloc: check if the requested memory is really available
resurrect malloc test