elementAt, elementAtOrNull, removeAt: code and test