Fixed several problems in running numerical test.
Added call from cmd line for control problem examples.