Added functional test cases