Framework for testing optimization algorithms