Allow tests to have a setup phase.
Add a config test.
Merge pull request #373 from plietar/tests-hooks

Allow tests to have a setup phase.