Functional test suite.

This is a :shit: suite of tests, but at least, we have tests now.