[misc] Fix deprecated call
* fix test