Separate tests and implement test for config.

Closes #7