Add regression testing setup.

This closes #3.