Misc Fixes

These are a few fixes for syntax errors in the examples and tests.  

There are still more that are broken... these are the ones where the solution was most obvious.