Integration tests. Fixes #12.

It would be nice to have a method to clean all data directories and force restart even if the config file is not changed.