Use a config library in tests

The world does not need more regular expressions.
Merge pull request #4 from guardian/pw-use-config-lib

Use a config library in tests