A judge has ordered builders at the centre of the mica controversy in Donegal to make discovery of thousands of key documents along with test results requested by homeowners who have taken legal action.