Company loses lengthy court battle with CIDA