[test][index] Replace struct with class keyword in specialization of allocators<> for throwing node.