High court to hear appeal from terror suspect jailed on security certificate