Partnerships registrar loses case in Court of Appeal