Memory allocation test