test_that('make sure that factor levels line up with original data', { skip_on_cran() skip_if_not_installed('rstanarm') skip_if_not_installed('tibble') expect_identical(levels(newValueF(logitModel$model, marg_effect='assoc', new_value='Y')$assoc), sort(unique(logitModel$model$assoc))) })