Matlab example tracker refactoring.
Some minor additions to do_test