testing environment and model recording