[[ Bug 11127 ]] Added memory allocation failure tests.