Set testing environment