Abbasi had attacked two police constables with a sharp-edged weapon at a gate of the famed Gorakhnath temple and tried to barge into the premises on Sunday evening before he was overpowered.
The UAPA allows the investigating agencies to get a longer remand of the accused and an extended duration to file a charge sheet.
The Uttar Pradesh Anti-Terror Squad on Wednesday reached its headquarters in Lucknow with the accused in the Gorakhnath temple attack case, Ahmed Murtaza Abbasi, for further inquiries in the case.
The Uttar Pradesh police will get a psychological test done on Ahmad Murtaza Abbasi, accused in the attack on security personnel outside Gorakhpur's Gorakhnath temple, a senior official said on Thursday.
The accused, identified as Murtaza Abbasi, was arrested and has been sent to judicial remand for two weeks, police said and alleged that he tried to forcibly enter the temple, which was teeming with devotees during the Navratri festival, after raising the religious slogan of 'Allahu Akbar'.