Hmm. If the green LEDS stay on when the test switch is operated, the wiring is wrong as per Davesparks' suggestion but the fact the LED is on should indicate reliably that the battery is on charge, not merely that the PL is live. So although the test switch would not test the fitting in the intended manner, if the battery is good then the fitting should still function during power loss. If the green LEDs go off when the test switch is operated, then there's no evidence of a wiring error and again the fitting should still work.
I think we've gone as far as we can go with the evidence available and investigation with test equipment is now needed to make any useful progres...