Improved tests.  Introduce config file.

Adds to #46.