Integration tests. Fixes #12.

Indeed, might be useful.