Fixed element variable naming in tests