Added functional test case