Optimization of imaging test