Skip access token failure tests if access token is not null

Change-Id: I3f14ac87f4c903b24d9c30167b11de51232cdc67
diff --git a/tests/testthat/test-KorAPConnection.R b/tests/testthat/test-KorAPConnection.R
index 65c8f82..c96805d 100644
--- a/tests/testthat/test-KorAPConnection.R
+++ b/tests/testthat/test-KorAPConnection.R
@@ -14,7 +14,7 @@
 
 test_that("Persisting null apiToken fails", {
   kco <- new("KorAPConnection")
-  expect_null(kco@accessToken)
+  skip_if_not(is.null(kco@accessToken))
   expect_error(persistAccessToken(kco),
                ".*not supplied any access token.*",
                perl = TRUE)