move tests & scripts in different folder.

Since we now set a default config dir, make sure we can override it when we
run examples.