[#1871] Fix wrong call in tests