imap.tests: dont run any unit tests unless a test account is specified

The imap tests fails on the build farm. So this disables them unless they are configured.