Optimize test data for visualization