Added integration tests to autotools.

Fixes #79.