preparing testing environment