Test examples for the optimization package