Avoid warnings with tests enabled

cc @dinosaure
Oh, right, I didn't know there were this function