Self-testing emergency ballast