Fix tests for external application checks at import time