renamed test/examples to test/apps
tidy up examples