Prepare testing environment