An Asymptotic Expansion for the Distribution of Test Criteria which are Asymptotically Distributed as Chi-squared under Contiguous Alternatives