Capabilities and limitations of an analytic potential expansion for diatomic molecules