Advanced tests of nonlocality with entangled photons