move enum:index_of into array
switch expected/actual in tests