Testing the resistance of materials to UV radiation