The Gulf state is to introduce testing for all citizens and foreign residents following last month's mosque bombing, which was claimed by ISIL.