Adding functional tests.