Revelation 2:15 “Thus you also have those who hold the doctrine of the Nicolaitans, which thing I hate.
The church of Pergamos errs twice; the first error was tolerating the doctrine of Balaam in their own church. Ephesus tested apostles and found them to be false, by implication rejecting them for their heretical teachings.