Chi-squared Goodness-of-fit Tests for Censored Data