Court of Appeal hears challenge to 'anti-Islam' dismissal