updated the functional test cases