Fix in tests app.setState mock