The trial of Ammara Amjad was a test of whether Canada could bring to justice women who served the Islamic State.