Fix functional test case