Clean up examples

Add test/examples.jl to track breakage for examples. Fixes #7332.