If it's just about testing the function itself, just call the function! Retrieve the result on a variable and assert to it.
If you are trying to test a class which is using the extension function, just think that you call those functions over an object instance, not as static functions. So you shouldn't have any difference either on testing a class with standard function calls inside of it's methods.