Adding backend index constructor, tests and search class