An Islamic extremist said he was going to "start experiments" four months before he died in a suicide attack, a court has been told.