Added a functional test case.