Test working with app-state.