More memory management tests