testing three phases