An omnibus lack of fit test in logistic regression with sparse data