add another test for index
adding config based interface so nothing is es specific, adding rest routes