Use XML functions in testing