Add basic functional test to self-test suite.