Added functional testcase.