[misc] Fixed functional test