overloaded [] in tests