switched assert_that for stopifnot