Only run tests if imap extension is available
Prevents build from failing on Travis
See https://travis-ci.org/xp-framework/core/jobs/13761961