Skip tests needing a context when context creation fails.

Makes Travis happy, but skips some important tests.