Memory allocation tests