Embodiments are directed to a lighting system including a junction box for accommodating a light source assembly, and which is configured to allows for additional components such as separate drivers or emergency ballasts to also be included in the lighting system together with the light source assembly. In embodiments, the junction box is mounted on a pan style frame. In some embodiments, the lighting system includes a test switch mounted on a trim piece that is accessible from below a ceiling in which the lighting system is installed, and which allows for an emergency power supply to be verified.