Rework testing to run examples from example directory