Adding functional test.