Test internal modelopt

test_opt()