A Co Derry man accused of explosives charges claimed he had a nail bomb to clear a blocked drain, a court has heard.