The black box is just a junction box to make the connection from the transformer to the light. You shouldn't have anything other than wires from the light and wires from the transformer, wire nutted together.