implementing tests