Add test to track tr memory usage.