Added functional test.