Test extension functions with type inference