Added tests for all non-X11 examples

Also made some minor fixes/enhancements to some examples

fixes #197