fixed test and getIndexName function

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>