first stages of testing