[misc] Fix functional test.