Add some functional tests.