Adding SimpleIndexGenerator and some tests around it