Cork City Council was found to have discriminated on the grounds of gender and age when applying the beep test for applicants for a firefighter role.