A man suspected of becoming an Isis terrorist has been accused of plotting an attack using mustard gas, a court has heard.