using type_index again + added docs + renamed test