Framework for testing convex optimization algorithms