tests: skip tests if manager cannot be created

When running without a user session, tests fail.